package Booking.user;

import Booking.BookList;
import Booking.operation.IOperation;

//抽象类，因为不知道进入的是普通用户还是管理员
public abstract class User {
    //登录名
    protected String name;
    //权限管理
   protected IOperation[] operations;
   //不同用户菜单内容不同
   public abstract int menu();
   public  void doOpreation(int choice, BookList bookList)
   {
       operations[choice-1].work(bookList);

   }

}
